'use strict';
const requireEx =require('yi-require');

const middleware =(req, res, next)=>{
    let body = req.body;
    body.loc = [body.longitude,body.latitude];
    next();
};

module.exports = {
    open:false,
    description:'新增店铺',
    middleware:middleware,
    handler:requireEx('yi-restful').c('store',[])
};
